package com.whut.mapper;

import com.whut.model.Userpermission;

import java.util.List;

public interface UserpermissionMapper {
    int deleteByPrimaryKey(Integer mKey);

    int insert(Userpermission record);

    int insertSelective(Userpermission record);

    Userpermission selectByPrimaryKey(Integer mKey);

    int updateByPrimaryKeySelective(Userpermission record);

    int updateByPrimaryKey(Userpermission record);

    List<Userpermission> selectAllPermission();

    List<Object> getAllModular();

    List<Object> getPermissionByModular(String modular);

    void setPermissionByPosition(Userpermission userpermission);

    Userpermission getPermissionByPermissionNum(Integer permissionNum);

    void deleteByPosition(String position);

    List<Object> getPermissionByPosition(String position);


}